<%-- 
    Document   : localizar
    Created on : 28/09/2012, 17:48:19
    Author     : rober
--%>

<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <link rel="stylesheet" href="<c:url value="/WebContent/css/jquery-ui-1.8.23.custom.css"/>" type="text/css"/>
        <script src="<c:url value="/WebContent/js/jquery-1.8.0.min.js"/>" type="text/javascript"></script>
        <script src="<c:url value="/WebContent/js/jquery-ui-1.8.23.custom.min.js"/>" type="text/javascript"></script>
        <script type="text/javascript">
            
        </script>
        <link rel="stylesheet" href="<c:url value="/WebContent/css/style.css"/>" type="text/css"/>
        <title>Pesquisa de Colaboradores</title>
    </head>
    <body>
        <div id="pesquisa" class="div_celula">
            Resultado
        </div>
        <div class="package-page">
            <h1>Colaboradores Encontrados</h1>
            <table width="100%">
                <c:if test="${!empty colaboradorList}">
                    <c:forEach items="${colaboradorList}" var="colaborador">
                        <tr>
                            <td><a href="informar/${colaborador.id}">${colaborador.nome}</a></td>
                            <td>${colaborador.cargo.descricao}</td>
                            <td>${colaborador.setor.resumo}</td>
                        </tr>
                    </c:forEach>
                </c:if>
                <c:if test="${empty colaboradorList}">
                    <div class="ui-widget">
                        <div style="padding: 0 .7em;" class="ui-state-error ui-corner-all">
                                <p><span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
                                <strong>Alerta:</strong> ${message}</p>
                        </div>
                    </div>
                </c:if> 
            </table>
        </div>        
    </body>
</html>
